package press.xiang.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import press.xiang.entity.Store;
import press.xiang.mapper.StoreMapper;
import press.xiang.service.IStoreService;

import java.util.List;

/**
 * @author xiang
 * @version 1.0
 * @description: TODO
 * @date 2022/4/21 6:34 下午
 */
@AllArgsConstructor
@Service
public class StoreServiceImpl extends ServiceImpl<StoreMapper, Store> implements IStoreService {

    private final StoreMapper storeMapper;

    @Override
    public void truncateStore() {
        storeMapper.truncateStore();
    }

    @Override
    public List<Store> getStorePathByCommodityName(String name) {
        return storeMapper.getStorePathByCommodityName(name);
    }
}
